package com.xoa.service.supervision;

import com.xoa.model.supervision.SupervisionType;
import com.xoa.util.ToJson;
import com.xoa.util.treeUtil.TreeGirdNode;
import com.xoa.util.treeUtil.TreeNode;

import org.springframework.stereotype.Service;

import javax.servlet.http.HttpServletRequest;
import javax.swing.text.html.HTML;

/**
 * Created by 张丽军 on 2017/7/28.
 */
@Service
public interface SupervisionTypeService {

    public ToJson<SupervisionType> getSupervisionTypeDetail(HttpServletRequest request, Integer sid);

    public ToJson<SupervisionType> updateSupervisionType(HttpServletRequest request,SupervisionType supervisionType);

    public ToJson<SupervisionType> addSupervisionType(HttpServletRequest request,SupervisionType supervisionType);

    public ToJson<SupervisionType> deleteSupervisionTypeBySid(Integer sid);

    public ToJson<SupervisionType> getSupervisionTypeList(SupervisionType supervisionType,HttpServletRequest request,Integer page, Integer pageSize, Boolean useFlag);

	/**
	 * 创建作者:   杨 胜
	 * 创建日期:   2017-8-1 下午8:26:23
	 * 方法介绍:   
	 * 参数说明:   @param request
	 * 参数说明:   @return
	 * @return     ToJson<TreeNode>
	 */
	public ToJson<TreeGirdNode> getSupTypeList(HttpServletRequest request);


	public ToJson<SupervisionType> getSupNameSelect(HttpServletRequest request,SupervisionType supervisionType);
}
